<input type="hidden" id="razred_id" value="<?php echo $razred->getId() ?>" />
<input type="hidden" id="predmet_id" value="<?php echo $predmet->getId() ?>" />
<input type="hidden" id="period" value="<?php echo $period ?>" />
<table style="font-size:14pt;" width="100%" border="2" cellspacing="0" cellpadding="0">
  <tr>
    <td style="padding-left:1px;background:#eee;">Rbr</td>
    <td style="padding-left:5px;background:#eee;">Prezime i ime</td>
    <td style="padding-left:5px;background:#eee;">Upisane I</td>
    <td style="padding-left:5px;background:#eee;">Upisane II</td>
    <td style="text-align:center;background:#eee;">Ocena</td>
    <td style="text-align:center;background:#eee;">Obrazloženje</td>
  </tr>

  <?php
  $tabindex = 1;
  foreach($uceniks as $ucenik)
  {?>
    <tr>
      <td style="padding-left:1px;"><?php echo $ucenik->getRedBr() ?></td>
      <td style="padding-left:5px;"><?php echo $ucenik->joinIme() ?></td>
      <td style="padding-left:5px;">
        <?php
        if(isset($ocenas[$ucenik->getId()][1]))
        {
            echo Dnevnik::oceneGraf($ocenas[$ucenik->getId()][1], $ucenik->getRazredId(), 0, 1);
        }
        ?>
      </td>
      <td style="padding-left:5px;">
        <?php
        if(isset($ocenas[$ucenik->getId()][2]))
        {
            echo Dnevnik::oceneGraf($ocenas[$ucenik->getId()][2], $ucenik->getRazredId(), 0, 1);
        }
        ?>
      </td>
      <td style="text-align:center;"><input maxlength="1" size="1" type="text" class="input_ocena" id="oc_<?php echo $ucenik->getId() ?>" tabindex="<?php echo $tabindex++ ?>" /></td>
      <td style="text-align:center;"><input type="text" class="opis_ocena" id="op_<?php echo $ucenik->getId() ?>" tabindex="<?php echo $tabindex++ ?>" /></td>
    </tr>
  <?php }?>

</table>

<div style="text-align:center;">
  <button id='dugme' onclick="grupni_unos()" type="button">Unesi</button>
</div>